<!-- single folder-->
<ul class="dropdown-menu hide-platform-pad right-click-pop-up" role="menu" ng-if="(multipleChooseFiles.length<2 && supportFile && !file.isDocument()) && !currentFolder.isReadonly() && !file.isReadOnlyFolder()">
    <li ng-if="!searchModeIsOn">
        <a class="popup-left-border" ng-click="moveTo(file,$event)">
            <span class="fa-stack" style="width:1em;">
                <i class="fa fa-folder fa-stack-1x"></i>
                <i class="fa fa-arrow-right fa-stack-1x impt-color"></i>
            </span>
            {{ 'move_to' | translate }}
        </a>
    </li>
    <!--canApplyACL 这个权限 是 consume 和 其它三个权限区别 collaborate contribute 一样的 manage多一个 canMoveObject权限-->
    <li ng-if="!detailPanelIsShow">
        <a ng-click="showDetail()">
            <i class="fa fa-info-circle"></i> {{'view_detail' | translate }}
        </a>
    </li>
    <li ng-if="file.allowableActions.canUpdateProperties">
        <a class="popup-left-border" ng-click="rename(file)">
            <i class="fa fa-pencil" ></i> {{ 'rename' | translate }}
        </a>
    </li>
    <li ng-if="!file.isRoot() && !file.isDocument() && title =='Shared Document'">
        <a class="popup-left-border" ng-click="setPermission(file)">
            <i class="fa fa-cog"></i> {{'manage_permission' | translate}}
        </a>
    </li>
    <li ng-if="!file.isRoot() && !file.isDocument() && file.allowableActions.canDeleteObject">
        <a class="popup-left-border" ng-click="deleteFolder(file, $event,true,true)">
            <i class="fa fa-trash-o"></i> {{'delete' | translate }}
        </a>
    </li>
</ul>
<!-- single document -->
<ul class="dropdown-menu hide-platform-pad right-click-pop-up" role="menu" ng-if="(multipleChooseFiles.length<2 && supportFile && file.isDocument()) && !currentFolder.isReadonly()">
    <!--canApplyACL 这个权限 是 consume 和 其它三个权限区别 collaborate contribute 一样的 manage多一个 canMoveObject权限-->
    <!--<li class="" >-->
        <!--<a href="javascript:;">-->
            <!--<span class="cloud-reading-share" file="file" current-scope="this"></span>-->
        <!--</a>-->
    <!--</li>-->
    <li style="position: relative;">
        <span class="cloud-reading-share" file="file" current-scope="this"></span>
        <a href="javascript:;" style="position: relative;z-index:0;">
            <i class="fa fa-link"></i> {{'share_file' | translate }}
        </a>
    </li>
    <li ng-if="device=='phantom-online'" ng-class="{'hide':canMerge(multipleChooseFiles)==false,'':canMerge(multipleChooseFiles)}">
        <a class="popup-left-border" style="background:url('img/merge-pdf-pop-up.png');background-size: 10%;background-repeat: no-repeat;background-position: 10% 50%;" ng-mousedown="mergePdf(multipleChooseFiles,$event)">
            <i class="fa fa-trash-o" style="visibility: hidden;"></i> {{'merge_pdf' | translate }}
        </a>
    </li>

    <li ng-show="file.contentStreamMimeType=='application/pdf' && device=='phantom-online'">
        <a ng-click="organizePDFPage(file)" style="background: url(img/page-organizer-pop-up.png);background-size: 7%;background-repeat: no-repeat;background-position: 12% 50%;">
            <i class="fa fa-info-circle" style="visibility: hidden;"></i> {{'organize_pdf_page' | translate }}
        </a>
    </li>
    <li role="separator" class="divider"></li>
    <li ng-show="!detailPanelIsShow">
        <a ng-click="showDetail()">
            <i class="fa fa-info-circle"></i> {{'view_detail' | translate }}
        </a>
    </li>
    <li ng-show="file.isDocument() && repository == 'fxcld' && device=='foxitReader' && showSendEmail">
        <a ng-click="sendViaEmail(file)">
            <i class="fa fa-envelope-o"></i> {{'send_via_email' | translate }}
        </a>
    </li>
    <li ng-if="file.allowableActions.canGetContentStream"  ng-class="{'style-disable':!file.canPreview(),'':file.canPreview()}">
        <a class="popup-left-border" ng-click="preview(file,$event)">
            <i class="fa fa-eye"></i> {{'preview' | translate }}
        </a>
    </li>
    <li ng-if="file.allowableActions.canGetContentStream && (device != 'foxitReader' || isIEorEdge) && !isSafari">
        <a class="popup-left-border" ng-click="download(file)">
            <i class="fa fa-download"></i> {{'download' | translate }}
        </a>
    </li>
    <li role="separator" class="divider"></li>
    <li ng-if="!searchModeIsOn">
        <a class="popup-left-border" ng-click="moveTo(file,$event)">
            <span class="fa-stack" style="width:1em;">
                <i class="fa fa-folder fa-stack-1x"></i>
                <i class="fa fa-arrow-right fa-stack-1x impt-color"></i>
            </span>
            {{ 'move_to' | translate }}
        </a>
    </li>
    <li ng-if="file.allowableActions.canUpdateProperties">
        <a class="popup-left-border" ng-click="rename(file)">
            <i class="fa fa-pencil" ></i> {{ 'rename' | translate }}
        </a>
    </li>
    <li ng-if="file.allowableActions.canUpdateProperties">
        <a class="popup-left-border" ng-click="openModifyFilePicker(file)">
            <i class="fa fa-arrow-up" ></i> <span>{{ 'upload_new_version' | translate }}</span>
        </a>
    </li>
    <li role="separator" class="divider" ng-if="file.allowableActions.canDeleteObject"></li>
    <li ng-if="file.allowableActions.canDeleteObject">
        <a class="popup-left-border" ng-click="delete(file)">
            <i class="fa fa-trash-o"></i> {{'delete' | translate }}
        </a>
    </li>
    <li ng-show="fromFillAndSign" class="{{ fromFillAndSign }}">
        <a ng-click="fillAndSign(file)">

            <i class="fa fa-link"></i> fill and sign {{ fillAndSign }}
        </a>
    </li>
    <!--<li ng-if="file.allowableActions.canCheckOut && repository!='fxcld'">-->
        <!--<a class="popup-left-border" ng-click="checkOut(file)">-->
            <!--<i class="fa fa-lock"></i> {{'check_out' | translate }}-->
        <!--</a>-->
    <!--</li>-->
    <!--<li ng-if="file.isDocument() && file.allowableActions.canRemoveObjectFromFolder && multipleChooseFiles.length<2">-->
    <!--<a ng-click="addToFolder(file)">-->
    <!--<i class="fa fa-share"></i> {{'remove_from_folder' | translate }}-->
    <!--</a>-->
    <!--</li>-->
    <!--<li ng-if="file.allowableActions.canCheckIn && repository!='fxcld'">-->
        <!--<a class="popup-left-border" ng-click="checkIn(file)">-->
            <!--<i class="fa fa-unlock"></i> {{'check_in' | translate }}-->
        <!--</a>-->
    <!--</li>-->
    <!--<li ng-if="file.allowableActions.canCancelCheckOut && repository!='fxcld'">-->
        <!--<a class="popup-left-border" ng-click="cancelCheckOut(file)">-->
            <!--<i class="fa fa-unlock-alt"></i> {{'cancel_check_out' | translate }}-->
        <!--</a>-->
    <!--</li>-->
    <!--<li ng-if="isWindowPlatForm && repository!='fxcld'">-->
        <!--<a class="popup-left-border" ng-click="libreOfficePreview(file)">-->
            <!--<i class="fa fa-external-link"></i> {{'libre_preview' | translate }}-->
        <!--</a>-->
    <!--</li>-->
    <!--<li ng-if="file.allowableActions.canAddObjectToFolder && repository!='fxcld'">-->
        <!--<a class="popup-left-border" ng-click="addToFolder(file)">-->
            <!--<i class="fa fa-share"></i> {{'add_to' | translate }}-->
        <!--</a>-->
    <!--</li>-->
    <li ng-if="file.isAllowEdit() && repository!='fxcld'" ng-class="{'style-disable':!file.canEdit(),'':file.canEdit()}">
        <a class="popup-left-border" ng-click="edit(file)">
            <i class="fa fa-edit"></i> {{'edit' | translate }}
        </a>
    </li>
    <!--<li role="separator" ng-show="file.contentStreamMimeType=='application/pdf'" class="divider"></li>-->
    <!--<li ng-show="file.contentStreamMimeType=='application/pdf'">-->
        <!--<a class="popup-left-border" href="https://www.foxitsoftware.com/pdf-editor/?fromcloudreading=right-pdf2word" target="_blank">-->
            <!--<i class="fa fa-long-arrow-right fa-fw"></i> {{'PDF2Word' | translate }}-->
        <!--</a>-->
    <!--</li>-->
    <!--<li ng-show="file.contentStreamMimeType=='application/pdf'">-->
        <!--<a class="popup-left-border" href="https://www.foxitsoftware.com/pdf-editor/?fromcloudreading=right-EditPDF" target="_blank">-->
            <!--<i class="fa fa-edit fa-fw"></i> {{'edit' | translate }} {{ 'pdf' | translate }}-->
        <!--</a>-->
    <!--</li>-->
    <!--<li ng-show="file.contentStreamMimeType=='application/pdf'">-->
        <!--<a class="popup-left-border" href="https://www.foxitsoftware.com/pdf-editor/?fromcloudreading=right-OrganizePDF" target="_blank">-->
            <!--<i class="fa fa-gears fa-fw"></i> {{'organize' | translate }} {{ 'pdf' | translate }}-->
        <!--</a>-->
    <!--</li>-->
    <!--<li ng-show="file.contentStreamMimeType=='application/pdf'">-->
        <!--<a class="popup-left-border" href="https://www.foxitsoftware.com/pdf-editor/?fromcloudreading=right-SignPDF" target="_blank">-->
            <!--<i class="fa fa-thumb-tack fa-fw"></i> {{'sign' | translate }} {{ 'pdf' | translate }}-->
        <!--</a>-->
    <!--</li>-->
</ul>
<!-- single document -->
<ul class="dropdown-menu hide-platform-pad right-click-pop-up" role="menu" ng-if="(multipleChooseFiles.length<2 && supportFile && file.isDocument()) && currentFolder.isReadonly()">

    <li ng-if="file.allowableActions.canGetContentStream"  ng-class="{'style-disable':!file.canPreview(),'':file.canPreview()}">
        <a class="popup-left-border" ng-click="preview(file,$event)">
            <i class="fa fa-eye"></i> {{'preview' | translate }}
        </a>
    </li>

</ul>
<!-- multiplefiles-->
<ul class="dropdown-menu hide-platform-pad right-click-pop-up" role="menu" ng-if="(multipleChooseFiles.length>1) && !currentFolder.isReadonly()">
    <li ng-if="!searchModeIsOn">
        <a class="popup-left-border" ng-mousedown="moveTo(multipleChooseFiles,$event)">
            <span class="fa-stack" style="width:1em;">
                <i class="fa fa-folder fa-stack-1x"></i>
                <i class="fa fa-arrow-right fa-stack-1x impt-color"></i>
            </span>
            {{ 'move_to' | translate }}
        </a>
    </li>
    <li>
        <a class="popup-left-border" ng-mousedown="multipleDel($event)">
            <i class="fa fa-trash-o"></i> {{'delete' | translate }}
        </a>
    </li>
    <li>
        <a class="popup-left-border" ng-if="device=='phantom-online'" style="background:url('img/merge-pdf-pop-up.png');background-size: 11%;background-repeat: no-repeat;background-position: 13% 50%;"  ng-mousedown="mergePdf(multipleChooseFiles,$event)" ng-class="{'hide':canMerge(multipleChooseFiles)==false,'':canMerge(multipleChooseFiles),'style-disable':disableMerge}">
            <i class="fa fa-trash-o" style="visibility: hidden"></i> {{'merge_pdf' | translate }}
        </a>
    </li>
</ul>